package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.Clazz;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface ClazzMapper {

    Page<Clazz> list(String name, LocalDate begin, LocalDate end);

    List<Clazz> getAll();

    void deleteById(Integer id);

    void insert(Clazz clazz);

    Clazz getInfo(Integer id);

    void updateClazz(Clazz clazz);

}
